<?php /* CONTACTS $Id: do_contact_aed.php,v 1.5 2005/01/17 07:48:25 ajdonnison Exp $ */
require_once(DP_BASE_DIR."/modules/quotations/quotations.class.php");
$obj = new CQuotations();
$msg = '';

if (!$obj->bind( $_POST )) {
	$AppUI->setMsg( $obj->getError(), UI_MSG_ERROR );
	$AppUI->redirect();
}
$del = intval(dPgetParam( $_REQUEST, 'del', 0 ));
// prepare (and translate) the module name ready for the suffix
$AppUI->setMsg( 'Quotations' );
if (($del > 0 )) {
	if (($msg = $obj->delete())) {
		$AppUI->setMsg($msg, UI_MSG_ERROR);
	} else {
		$AppUI->setMsg("deleted", UI_MSG_ALERT, true);
	}
}
$AppUI->redirect();
?>